package com.example.lotapp.tasks;

import android.os.AsyncTask;

import com.example.lotapp.network.HttpUtils;
import com.example.lotapp.network.ParamUtils;

public class AsynServerBaseTask extends AsyncTask<String, Integer, String>{
	String mAction;
	public AsynServerBaseTask(String action) {
		mAction = action;
	}
	@Override
	protected String doInBackground(String... params) {
		 try {
             String strParam = ParamUtils.getRequestParam(params[0], mAction);
             return HttpUtils.post(HttpUtils.SERVER_URL, strParam, null);
         } catch(Exception e) {
         	return null;
         }
	}
}
